/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 26727
 * Date: 2024-01-21
 * Time: 16:43
 */
public class Test {


    public static void main(String[] args) {
        MySingleList mySingleList = new MySingleList();
        mySingleList.addFirst(23);
        mySingleList.addFirst(43);
        mySingleList.addFirst(53);
        mySingleList.addFirst(88);
        mySingleList.display();
        mySingleList.createCycle();
        System.out.println(mySingleList.detectCycle());
    }
}
